package cqrtplm.mapper;

import cqrtplm.entity.ObjectStorageDO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.math.BigInteger;
import java.util.List;

@Repository
public interface ObjectStorageMapper {

    ObjectStorageDO selectOneByTypeDefName(@Param("name")String name);

    void saveObjectStorage(ObjectStorageDO objectStorage);

    List<ObjectStorageDO> selectAll(@Param("defName") String defName);

    void updateObjectStorage(ObjectStorageDO objectStorageDO);

    String selectTypeDisplayNameByTypeId(BigInteger typeId);
}